//
//  MyTableViewCell.m
//  UI10_作业2
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "MyTableViewCell.h"

@implementation MyTableViewCell

- (void)dealloc
{
    [_bigimgView release];
    [_minimgView release];
    [_timeimgView release];
    [_addimgView release];
    [_typeimgView release];
    [_imgView release];
    [_titleLabel release];
    [_timeLabel release];
    [_addLabel release];
    [_typeLabel release];
    [_hobbyLabel11 release];
    [_hobbyLabel22 release];
    [_joinLabel11 release];
    [_joinLabel22 release];
    
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatCell];
    }
    return self;
}

- (void)creatCell {


    self.bigimgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_bigimgView];
    [_bigimgView release];
    
    self.minimgView = [[UIImageView alloc] init];
    [_bigimgView addSubview:_minimgView];
    [_minimgView release];
    
    self.timeimgView = [[UIImageView alloc] init];
    [_minimgView addSubview:_timeimgView];
    [_timeimgView release];
    
    self.addimgView = [[UIImageView alloc] init];
    [_minimgView addSubview:_addimgView];
    [_addimgView release];
    
    self.typeimgView = [[UIImageView alloc] init];
    [_minimgView addSubview:_typeimgView];
    [_typeimgView release];
    
    self.imgView = [[UIImageView alloc] init];
    [_minimgView addSubview:_imgView];
    [_imgView release];
    
    self.titleLabel = [[UILabel alloc] init];
    [_bigimgView addSubview:_titleLabel];
    [_titleLabel release];
    
    self.timeLabel = [[UILabel alloc] init];
    [_minimgView addSubview:_timeLabel];
    [_timeLabel release];
    
    self.addLabel = [[UILabel alloc] init];
    [_minimgView addSubview:_addLabel];
    [_addLabel release];
    
    self.typeLabel = [[UILabel alloc] init];
    [_minimgView addSubview:_typeLabel];
    [_typeLabel release];
    
    self.hobbyLabel11 = [[UILabel alloc] init];
    [_minimgView addSubview:_hobbyLabel11];
    [_hobbyLabel11 release];
    
    self.hobbyLabel22 = [[UILabel alloc] init];
    [_minimgView addSubview:_hobbyLabel22];
    [_hobbyLabel22 release];
    
    self.joinLabel11 = [[UILabel alloc] init];
    [_minimgView addSubview:_joinLabel11];
    [_joinLabel11 release];
    
    self.joinLabel22 = [[UILabel alloc] init];
    [_minimgView addSubview:_joinLabel22];
    [_joinLabel22 release];
    
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    




    _bigimgView.frame = CGRectMake(15, 10, 345, 200);
    _bigimgView.backgroundColor = [UIColor clearColor];
    _bigimgView.image = [UIImage imageNamed:@"bg_eventlistcell@2x.png"];
    
    _minimgView.frame = CGRectMake(2, 40, 340, 150);
    _minimgView.backgroundColor = [UIColor clearColor];
    _minimgView.image = [UIImage imageNamed:@"bg_share_large@2x.png"];

    _timeimgView.frame = CGRectMake(10, 5, 20, 20);
    _timeimgView.backgroundColor = [UIColor clearColor];
    _timeimgView.image = [UIImage imageNamed:@"icon_date@2x.png"];

    _addimgView.frame = CGRectMake(10, 35, 20, 20);
    _addimgView.backgroundColor = [UIColor clearColor];
    _addimgView.image = [UIImage imageNamed:@"icon_spot@2x.png"];
 
    _typeimgView.frame = CGRectMake(10, 65, 20, 20);
    _typeimgView.backgroundColor = [UIColor clearColor];
    _typeimgView.image = [UIImage imageNamed:@"icon_catalog@2x.png"];

    _imgView.frame = CGRectMake(235, 5, 95, 140);
    _imgView.backgroundColor = [UIColor clearColor];

    _titleLabel.frame = CGRectMake(10, 5, 300, 30);
    _titleLabel.backgroundColor = [UIColor clearColor];
    
    _timeLabel.frame = CGRectMake(35, 5, 200, 20);
    _timeLabel.backgroundColor = [UIColor clearColor];
   
    _addLabel.frame = CGRectMake(35, 35, 200, 20);
    _addLabel.backgroundColor = [UIColor clearColor];

    _typeLabel.frame = CGRectMake(35, 65, 105, 20);
    _typeLabel.backgroundColor = [UIColor clearColor];

    _hobbyLabel11.frame = CGRectMake(15, 120, 80, 20);
    _hobbyLabel11.backgroundColor = [UIColor clearColor];
    
    _hobbyLabel22.frame = CGRectMake(70, 120, 40, 20);
    _hobbyLabel22.backgroundColor = [UIColor clearColor];

    _joinLabel11.frame = CGRectMake(115, 120, 45, 20);
    _joinLabel11.backgroundColor = [UIColor clearColor];
    
    _joinLabel22.frame = CGRectMake(155, 120, 50, 20);
    _joinLabel22.backgroundColor = [UIColor clearColor];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
